projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06ab3e7
)
GtkAboutDialog: Fix a parameter check
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 7 Jun 2014 14:47:33 +0000
(10:47 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 9 Jun 2014 17:30:51 +0000
(13:30 -0400)
When we expanded the GtkLicense enumeration in 3.12, we forgot
to update the limit check in gtk_about_dialog_set_license_type.
Caught by testing property notification for enum properties.
gtk/gtkaboutdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaboutdialog.c
b/gtk/gtkaboutdialog.c
index c0e048cb8ad2990ce33bea65e8fe9951356d0808..81aeda1a326db71df8401b0c25f49fbda37c0a90 100644
(file)
--- a/
gtk/gtkaboutdialog.c
+++ b/
gtk/gtkaboutdialog.c
@@
-2442,7
+2442,7
@@
gtk_about_dialog_set_license_type (GtkAboutDialog *about,
g_return_if_fail (GTK_IS_ABOUT_DIALOG (about));
g_return_if_fail (license_type >= GTK_LICENSE_UNKNOWN &&
- license_type <= GTK_LICENSE_
ARTISTIC
);
+ license_type <= GTK_LICENSE_
LGPL_3_0_ONLY
);
priv = about->priv;